package com.py.credit.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.py.credit.dao.FastEntranceDao;
import com.py.credit.entity.FastEntrance;
import com.py.credit.service.FastEntranceService;

@Service
public class FastEntranceServiceImpl implements FastEntranceService {
	@Autowired
	private FastEntranceDao fastEntranceDao;

	@Override
	public void add(int resourceId, String appid, long userId, String image, int sort, String resourceName,
			String subSysName, String url) {

		fastEntranceDao.insert(resourceId, appid, userId, image, sort, resourceName, subSysName, url);

	}

	@Override
	public List<FastEntrance> getList(long userId) {

		return fastEntranceDao.selectList(userId);
	}

	@Override
	public void removeFastEntrances(long userId) {
		fastEntranceDao.deleteFastEntrances(userId);

	}
}
